package com.huxun.service.Impl;

import com.huxun.bean.Desk;
import com.huxun.mapper.DeskMapper;
import com.huxun.service.DeskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeskServiceImpl implements DeskService {
    @Autowired
    DeskMapper deskMapper;
    @Override
    public List<Desk> getDesks(Desk desk) {
        return deskMapper.getDesks(desk);
    }

    @Override
    public int addDesk(Desk desk) {
        return deskMapper.addDesk(desk);
    }

    @Override
    public int deleteDesk(int id) {
        return deskMapper.deleteDesk(id);
    }

    @Override
    public int changeState(Desk desk) {
        return deskMapper.changeState(desk);
    }

    @Override
    public Desk getById(int id) {
        return deskMapper.getById(id);
    }
}
